/**
 * Copyright (C), 2001-2023, www.bosssof.com.cn
 * FileName: SecurityConstant
 * Author: Administrator
 * Date: 2024-05-29 10:02
 * Description:
 * <p>
 * History:
 * <author> Administrator
 * <time> 2024-05-29 10:02
 * <version> 1.0.0
 * <desc> 版本描述
 */
package com.bosssoft.g1.common.constant;

public class SecurityConstants
{
    /**
     * 令牌自定义标识
     */
    public static final String TOKEN_AUTHENTICATION = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "authorization";

    /**
     * 请求来源
     */
    public static final String FROM_SOURCE = "from-source";

    /**
     * 内部请求
     */
    public static final String INNER = "inner";
}
